<html>
<head>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery.print.js"></script>  
<script type="text/javascript">
$(function(){ 
 //printable function for direct print
 $( ".printable" ).print();
});
</script>
</head>
<a href="deliveryChalanList.php"><font color="red">Back</font></a>
<body>
<div class="printable">
<table align="center" border="1" cellpadding="3" cellspacing="0" width="94%" style="float:right;margin-right:25px;">
<tr>
  <td>
    <table align="center" border="0" cellpadding="3" cellspacing="0" width="100%" style="font-size:11px;">
    <tr>
      <td colspan="2">
      	<b><font size="5">ED Systems</font></b>
      	<p>KIRAN HOUSE, JAWAHAR ROAD RAJKOT</p>
      </td>
      {if $challanType == 'Goods Inward Note'}
        <td align="center" NOWRAP colspan="2">Goods Inward Note</td>
      {else}
        <td align="center" NOWRAP colspan="2">Delivery Note / Goods Return Note</td>
      {/if}
    </tr>
    <tr>
    	{if $challanType == 'Goods Inward Note'}
        <td rowspan="2" width="5%" valign="top">From : </td>
      {else}
        <td rowspan="2" width="5%" valign="top">To : </td>
      {/if}
      <td rowspan="2" valign="top">{$printArray.companyName},<br/>{$printArray.address}</td>
      <td align="right" width="10%">SR. No. : </td>
      <td>{$printArray.srNo}</td>
    </tr>
    <tr>
      <td align="right" width="10%">Date : </td>
      <td>{$printArray.delivaryDate}</td>
    </tr>
    <tr>
    	<td>City : </td>
    		<td>
    			{$printArray.city} 
    			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    		{if $printArray.firstName != NULL}Technician : {$printArray.firstName}{/if}
    		</td>
      <td align="right" width="10%">Customer's TIN No. : </td>
      <td colspan="3">{$printArray.partyTINNo}</td>
    </tr>
    </table>
  </td>
</tr>
<tr>
  <td>
    <table border="1" align="center" width="100%" cellpadding="3" cellspacing="0" style="font-size:11px;">
    <tr>
      <td width="5%" align="center">SR.NO</td>
      <td width="60%" align="center">DESCRIPTION OF MATERIAL</td>
      <td width="10%" align="center">QTY. SUPPLIED</td>
      <td width="10%" align="center">QTY. RETURNED</td>
      <td width="10%" align="center">NET QTY.USED</td>
    </tr>
    {section name="sec" loop=$deliveryChalanArray}
    <tr>
      <td align="center">{$smarty.section.sec.rownum}</td>
      <td>{$deliveryChalanArray[sec].itemName}</td>
      <td align="center">{$deliveryChalanArray[sec].quantity}</td>
      <td align="center">{$deliveryChalanArray[sec].quantityReturn}</td>
      <td align="center">{$deliveryChalanArray[sec].netQuantity}</td>
    </tr>
    {/section}
    </table>
  </td>
</tr>
<tr>
	<td>
		<table border="0" align="center" cellpadding="3" cellspacing="0" width="100%" style="font-size:11px;">
		<tr>
			{if $challanType == 'Goods Inward Note'}
			  <td align="left" colspan="3" style="font-size:11px" NOWRAP>
			  	Please check the Qnt. & Qualilty Material at the time of receipt.
			  </td>
			{else}
    	  <td align="left" colspan="3" style="font-size:11px" NOWRAP>
    	    E. & O. E. <br />
    	    Subject to Rajkot Jurisdiction only.<br />
    	    Please check the Qnt. & Qualilty Material at the time of receipt.
      </td>
      {/if}
    </tr>
    <tr>
      <td align="left" style="font-size:12px" NOWRAP>
      	GST TIN No. 24090201048 <br /> CST TIN No. 24590201048
      </td>
      <td align="center" NOWRAP>_________________ <br /> Prepared by</td>
      {if $challanType == 'Goods Inward Note'}
        <td align="center" NOWRAP>_____________________ <br /> Receiver Sign.</td>
      {else}
        <td align="center" NOWRAP>_____________________ <br /> Customer / Receiver Sign.</td>
      {/if}  
    </tr>
	  </table>	
  </td>
</tr>
</table>
<br /><br />
{if $challanType == 'Goods Inward Note'}
<table align="center" border="1" cellpadding="3" cellspacing="0" width="80%">
	<tr>
		<td colspan="7" align="center"><b>Edsystems</b></td>
	</tr>
	<tr>
		<td colspan="7" align="center"><b>GOODS  INSPECTION  & PAYMENT CLEARANCE SYSTEM</b></td>
	</tr>
	<tr>
		<td width="10%"><b>PROCESS STAGE</b></td>
		<td>Goods Received</td>
		<td>Quantity Verified</td>
		<td>Quality Check</td>
		<td>Price Check</td>
		<td>Final Approval</td>
		<td>Pay  On</td>
	</tr>
	<tr height="30px">
		<td>Date</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr height="50px">
		<td>Signature</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr height="80px">
		<td>Remarks</td>
		<td colspan="3">&nbsp;</td>
		<td colspan="3">&nbsp;</td>
	</tr>
</table>
{/if}
</div>
</body>
</html>